package com.SouthernWall_404.AgeSuitcase.Common.init;

import com.SouthernWall_404.AgeSuitcase.Common.AgeSuitcase;
import com.google.common.collect.Sets;
import net.minecraft.core.registries.Registries;
import net.minecraft.network.chat.Component;
import net.minecraft.world.item.CreativeModeTab;
import net.minecraft.world.item.Item;
import net.minecraft.world.item.ItemStack;
import net.minecraftforge.registries.DeferredRegister;
import net.minecraftforge.registries.RegistryObject;

import java.util.LinkedHashSet;
import java.util.function.Supplier;

public class ModCreativeModeTab {
    public static final DeferredRegister<CreativeModeTab> CREATIVE_TABS = DeferredRegister.create(Registries.CREATIVE_MODE_TAB, AgeSuitcase.MODID);


    public static final RegistryObject<CreativeModeTab> TAB_FARMERS_DELIGHT = CREATIVE_TABS.register(AgeSuitcase.MODID,
            () -> CreativeModeTab.builder()
                    .title(Component.translatable("itemGroup.age_suitcase"))
                    .icon(() -> new ItemStack(ModItems.SUITCASE_ITEM.get()))
                    .displayItems((parameters, output) -> ModItems.CREATIVE_TAB_ITEMS.forEach((item) -> output.accept(item.get())))
                    .build());
}
